import java.util.*;
public class Pinjunfeng {
    public static void main(String[] args) {
        double []scores=new double[3];
        Scanner input =new Scanner(System.in);
        double sum=0;//记录总数
        for (int i=0;i<scores.length;i++){
            System.out.println("请输入第"+(i+1)+"个同学的成绩");
            scores[i]=input.nextDouble();
        }
        for (double a:scores){//计算总成绩
            sum+=a;
        }
        double avg=sum/scores.length;
        System.out.println("全班同学的成绩是："+avg);
    }
}
